<script setup lang="ts">
import { inject } from 'vue';

const NotifyService: any = inject('NotifyService');

function showMessage() {
    NotifyService.show({
        limit: 5,
        showCloseButton: false,
        position: 'top-center',
        timeout: 3000,
        theme: 'bootstrap',
        left: 0,
        right: 0,
        top: 0,
        bottom: 0,
        id: '1',
        animate: 'fadeIn',
        options: { type: 'string', title: 'This is a title', msg: 'This is some message' },
        toasts: [{ type: 'string', title: 'This is a title', msg: 'This is some message' }]
    });
}
</script>
<template>
    <button class="btn btn-primary" @click="showMessage">show notify</button>
</template>
